﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace bind_n_find
{
    /// <summary>
    /// Interaction logic for add_new_tag_dlg.xaml
    /// </summary>
    public partial class add_new_tag_dlg : Window
    {
        private string _tag = string.Empty;
        public string tag
        {
            set { _tag = value; }
            get { return _tag; }
        }
        public add_new_tag_dlg()
        {
            InitializeComponent();
        }

        private void ok_button_Click(object sender, RoutedEventArgs e)
        {
            _tag = tag_box.Text;
            this.DialogResult = true;
            this.Close();

        }

        private void cancel_button_Click(object sender, RoutedEventArgs e)
        {
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            tag_box.Text = _tag;

        }
    }
}
